﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>客户列表</title>
    <link rel="stylesheet" href="~/Content/bootstrap.min.css">
</head>
<body>
    <div class="container"> 
        <p></p>
        <p><a class="btn btn-primary" href="/Home/LogOut">退出登录</a></p>
        <p></p>
        <table class="table table-striped table-hover">
            <tr>
                <th>姓名</th>
                <th>地址</th>
                <th>登录ID</th>
                <th>电话</th>
                <th>操作</th>
            </tr>
            @{
                List<Models.Customer> list = ViewBag.clist as List<Models.Customer>;
            }
            @foreach (var item in list)
            {
                <tr>
                    <td>@item.CustomerName</td>
                    <td>@item.Address</td>
                    <td>@item.LoginID</td>
                    <td>@item.Phone</td>
                    <td>
                        <a class="btn btn-primary" href="/">编辑</a>
                        <a class="btn btn-danger" href="/">删除</a>
                    </td>
                </tr>
            }
        </table>
    </div>
</body>
</html>
